import Http from '@/axios';

import { PasswordLoginForm } from '@/model/login';

export default class LoginApi {
    public static passwordLogin(form: PasswordLoginForm) {
        return Http.post(this.handleUrl('password'), form);
    }

    private static handleUrl(relativeUrl: string) {
        return `api/login/${relativeUrl}`;
    }
}
